const ModulesFile = import.meta.glob("./*.js", { eager: true });

const RouterList = [];

Object.values(ModulesFile).map((item) =>{
    if(item.default)
    {
        RouterList.push(...item.default);
    }
});

const layout = {
    template: `<router-view></router-view>`
};

export default[{
    path: '/chat',
    component: layout,
    children: RouterList,
}];